home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Notepad+ 1.xpl < prev    next >
Text File  |  2000-08-06  |  957b  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Other Programs\Notepad+"
  5. "NAME"="Notepad+ WordWrap"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable Word Wrap in Notepad+"
  9. "DESCRIPTION 1"="Checking Box sets Word Wrap as default."
  10. "AUTHOR"="Ojatex@aol.com"
  11. "CONTACTURL"="http://members.aol.com/ojatex/"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"=" "
  14.  
  15.  
  16.  
  17.  
  18. sP="HKCU\Software\RogSoft\Notepad+\Preferences\General\"
  19. sV2="Wordwrap"
  20.  
  21. Sub Plugin_Initialize 
  22.  if RegPathExists(sp) then
  23.  
  24.   i=RegReadValue(sp & sv2)
  25.   if i=1 then SetUIElement 1,true
  26.  
  27.  else
  28.   Disable
  29.  end if
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  b=GetUIElement(1)
  37.  if b=true then
  38.   Call RegWriteValue(sp & sv2,"1",1)
  39.  else
  40.   Call RegWriteValue(sp & sv2,"0",1)
  41.  end if
  42.  
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.